export const showMessage = (status:number | string):string => {
  let message = ""
  switch(status) {
  case 400:
    message = "请求错误(400)"
    break
  case 401:
    message = "未授权，请重新登录(401)"
    break
  case 404:
    message = "请求出错(404)"
    break
  case 504:
    message = "服务器错误(500)"
    break
  default:
    message = `连接出错(${status})！`
  }
  return `${message},请检查网络或联系管理员`
} 